﻿using System;
using System.Collections;
using System.Collections.Generic;


namespace DotNetRepository
{
    public interface IEntityEnumeration<TEntity> : IEntityEnumeration, IEnumerable<TEntity>
        where TEntity : class, IEntity
    {
        TEntity this[Guid id] { get; }
        int RecordCount { get; }
    }

    public interface IEntityEnumeration : IEnumerable
    {
        void OnEntityUpdated(IEntity entity);
        void OnEntityDeleted(Guid entityID);
    }
}
